package com.example.common.constant.order;

/**
 * <p>
 *
 * </p>
 *
 * @author zyred
 * @since v 0.1
 **/
public abstract class OrderConstant {

    /** 用户订单token前缀 **/
    public final static String USER_ORDER_TOKEN_PREFIX = "order:token:";
    /** 用户订单token时长 **/
    public final static long USER_ORDER_TOKEN_TIMEOUT = 30L;
    /** 7天不确认订单，自动确定订单 **/
    public final static int DEFAULT_AUTO_CONFIRM_DAY = 7;
    /** 提交价格于计算价格相差值 **/
    public final static double DEFAULT_DIFFERENCE = 0.01;

    /*********** 分布式柔性事务配置常量 common ************/
    public static final String DELAY_QUEUE = "order.delay.queue";
    public static final String NORMAL_QUEUE = "order.release.queue";

    public static final String ORDER_EXCHANGE = "order-event-exchange";

    public static final Integer TTL = 60000;

    /*********** 分布式柔性事务配置常量 order ************/
    public static final String ORDER_DELAY_KEY = "order.create.order";
    public static final String ORDER_NORMAL_KEY = "order.release.order";

    /*********** 分布式柔性事务配置常量 ware ************/
    public static final String WARE_DELAY_KEY = "order.create.order";
    public static final String WARE_NORMAL_KEY = "order.release.order";

}
